package com.my.commons.database;

import java.io.File;

import com.my.commons.configuration.Property;



/**
 * This class holds all configuration of database
 *
 * @author ly
 */
public class DatabaseConfig {
	
	/**
     * Default database url.
     */
    @Property(key = "database.url", defaultValue = "jdbc:mysql://localhost:3306/aion_uni")
    public static String DATABASE_URL;

    /**
     * Name of database Driver
     */
    @Property(key = "database.driver", defaultValue = "com.mysql.jdbc.Driver")
    public static Class<?> DATABASE_DRIVER;

    /**
     * Default database user
     */
    @Property(key = "database.user", defaultValue = "root")
    public static String DATABASE_USER;

    /**
     * Default database password
     */
    @Property(key = "database.password", defaultValue = "root")
    public static String DATABASE_PASSWORD;

    /**
     * Minimum amount of connections that are always active
     */
    @Property(key = "database.connections.min", defaultValue = "2")
    public static int DATABASE_CONNECTIONS_MIN;

    /**
     * Maximum amount of connections that are allowed to use
     */
    @Property(key = "database.connections.max", defaultValue = "10")
    public static int DATABASE_CONNECTIONS_MAX;

    /**
     * Location of database script context descriptor
     */
    @Property(key = "database.scriptcontext.descriptor", defaultValue = "./data/scripts/system/database/database.xml")
    public static File DATABASE_SCRIPTCONTEXT_DESCRIPTOR;
}
